package com.ys.web.entity;
// Generated 2017-3-7 9:21:28 by Hibernate Tools 4.0.0

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 代运营公司推广账号
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "account", catalog = "ysanalyze")
public class Account implements java.io.Serializable {

	

	private Integer id;
	/**代运营公司id*/
	private Integer companyId;
	/**推广平台类型（百度，360，神马...） */
	private String typeTag;
	/**代运营公司的登录账号*/
	private String loginName;
	/**代运营公司的登录密码*/
	private String loginPassword;
	/**代运营公司的使用状态（0：启用，1：停用）*/
	private byte accountState;

	public Account() {
	}

	public Account(Integer companyId, int semPlatformTypeId, String accountName, byte accountState) {
		this.companyId = companyId;
		this.accountState = accountState;
	}

	public Account(Integer companyId, int semPlatformTypeId, String accountName, String loginName, String loginPassword, byte accountState) {
		this.companyId = companyId;
		this.loginName = loginName;
		this.loginPassword = loginPassword;
		this.accountState = accountState;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)

	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "company_id", nullable = false)
	public Integer getCompanyId() {
		return this.companyId;
	}

	public void setCompanyId(Integer companyId) {
		this.companyId = companyId;
	}

	@Column(name = "login_name", length = 100)
	public String getLoginName() {
		return this.loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	@Column(name = "login_password", length = 100)
	public String getLoginPassword() {
		return this.loginPassword;
	}

	public void setLoginPassword(String loginPassword) {
		this.loginPassword = loginPassword;
	}

	@Column(name = "account_state", nullable = false)
	public byte getAccountState() {
		return this.accountState;
	}

	public void setAccountState(byte accountState) {
		this.accountState = accountState;
	}

	@Column(name = "type_tag", nullable = false, length = 50)
	public String getTypeTag() {
		return typeTag;
	}

	public void setTypeTag(String typeTag) {
		this.typeTag = typeTag;
	}
	
	@Override
	public String toString() {
		return "Account [id=" + id + ", companyId=" + companyId + ", typeTag=" + typeTag + ", loginName=" + loginName
				+ ", loginPassword=" + loginPassword + ", accountState=" + accountState + "]";
	}

}
